home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / March 96 / Re Initializing an Extension.3 < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  2.0 KB  |  [TEXT/ttxt]

  1. Subject:     Re: Initializing an Extension
  2. Sent:        3/10/96 10:10 AM
  3. Received:    3/11/96 8:27 AM
  4. From:        Bernhard S. Wieser, octavian@agt.net
  5. Reply-To:    ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. Thanks Jim and Greg for your [great, helpful] comments.
  9.  
  10. The following questions and scenario might be [complex] so I hope
  11. I state the problem clearly.
  12.  
  13. I have created suite of SOM classes that implement a rich, hierarchical
  14. data [model.]  The scheme is this; a thing called a Property has
  15. a name and a value.  A value can be an integer, real, string, SOM call
  16. [it looks pretty much like Property SOMClass:SOM Method( in Property
  17. parameterList )], list of Properties, or an enumeration [of strings.]
  18.  
  19. Part AAA has an ODExtension that creates a [root] Property for that
  20. part.   AAA stores all its "public" data in the Property such that
  21. other parts that know about the Property extension can use it.  The
  22. simple example is an inspector part, onto which part AAA can be
  23. dragged.  Anyway, both the owning part and the inspector can
  24. register callback functions somewhere along the [data tree] that
  25. will be called if a change occurs to a property.
  26.  
  27. The question is, where is the appropriate place to have the
  28. callback?  Originally I thought it would be the owner part's
  29. SOM interface itself.  Then I thought I might put it in the
  30. part's SOM extension.  Something doesn't seem right here, so
  31. now I think I should have some kind of SOM "helper" object
  32. created by the owner part.
  33.  
  34. Thanks for any suggestions.
  35.  
  36. B
  37.  
  38. /--------------------------------\+/------------------------------------\
  39. | Bernhard S. Wieser              | "Do not copy the opinions of the    |
  40. | Octavian Micro Development Inc. |  arrogant, or let them dictate your |
  41. | octavian@agt.net                |  own, but look at things in their   |
  42. | fax (403)289-5986               |  own true light." - Marcus Aurelius |
  43. \--------------------------------/+\------------------------------------/
  44.  
  45.